//
// Created by Yang2 on 2022/4/29.
//

#ifndef ORIGIN_GLUTILS_H
#define ORIGIN_GLUTILS_H

#include <GLES3/gl3.h>

class GLUtils {
public:
    // 加载着色器
    static GLuint LoadShader(GLenum shaderType, const char *pSource);

    static void CheckGLError(const char *pGLOperation);
    // 连接程序
    static GLuint CreateProgram(const char *pVertexShaderSource, const char *pFragShaderSource);
};


#endif //ORIGIN_GLUTILS_H
